package com.fjec.base;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(
        scanBasePackages = {
                "com.fjec.common",
                "com.fjec.base",
                "com.fjec.info"
        },
        exclude = {RabbitAutoConfiguration.class}
)
@EnableDiscoveryClient
@EnableAsync
@EnableScheduling
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true)
public class AppBase {

    public static void main(String[] args) {
        SpringApplication.run(AppBase.class, args);
    }
}
